/**
 * 
 */
package de.rotkiv.common.properties;

import java.util.HashMap;

/**
 * @author Rotkiv
 *
 */
public class PropertiesHandlingTest {

	
	public static void main(String[] args) {
		
		String path = "res\\tempprofile.txt";
		PropertiesHandling ph = new PropertiesHandling(path);
		
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("ABC", "Wert zu ABC");
		map.put("DEF", "Wert zu DEF");
		map.put("ZZZ", "Wert zu ZZZ");
		
		try {
			ph.save(map);
		} catch (Exception e) {
			System.out.println("Fehler " + e.getMessage() );
			e.printStackTrace();
		}
		
		HashMap<String, String> mapLoad = ph.load();
		
		String valueABC = mapLoad.get("ABC");
		String valueDEF = mapLoad.get("DEF");
		String valueZZZ = mapLoad.get("ZZZ");
		
		System.out.print(valueABC + ", " + valueDEF + ", " + valueZZZ);
	}

	
}
